<template>
	<view class="">
		<view class="box">
			<view class="letfboxbox">
				<view class="gz" @click="home">
					<view class="u-icon">
						<u-icon name="home" color="#333333" size="38"></u-icon>
					</view>
					<view class="name">
						主页
					</view>
				</view>
				<view class="gz">
					<view class="u-icon">
						<u-icon name="chat" color="#333333" size="38"></u-icon>
					</view>
					<view class="name">
						客服
					</view>
				</view>
				<view class="gz">
					<view class="u-icon">
						<u-icon name="star" color="#333333" size="38"></u-icon>
					</view>
					<view class="name">
						收藏
					</view>
				</view>
			</view>
			<view class="rightbox">
				<view class="ddgm" @click="gobuy">
					<view class="price">
						￥230
					</view>
					<view class="name">
						单独购买
					</view>
				</view>
				<view class="cypt">
					<view class="price">
						￥230
					</view>
					<view class="name">
						参与拼团
					</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default{
		data(){
			return{
				
			}
		},
		methods:{
			gobuy(){
				this.jumpLink({link:"/pages/affirmorder/index"})
			},
			home(){
				uni.switchTab({
					url:"../../pages/homepage/index"
				})
			}
		}
	}
</script>

<style scoped lang="scss">
	.box {
		position: fixed;
		bottom: 0;
		display: flex;
		align-items: center;
		justify-content: space-between;
		left: 0;
		right: 0;
		height: 110rpx;
		background-color: #ffffff;
		box-shadow: 0rpx 0rpx 10rpx 0rpx rgba(119, 119, 119, 0.16);

		.letfboxbox {
			display: flex;
			align-items: center;

			.gz {
				margin-left: 30rpx;

				.u-icon {
					padding: 0 5rpx;
				}

				.name {
					font-family: SourceHanSansCN-Regular;
					font-size: 22rpx;
					color: #333333;
					text-align: center;
				}
			}

		}

		.rightbox {
			display: flex;
			align-items: center;

			.ddgm {
				width: 220rpx;
				height: 78rpx;
				border-radius: 39rpx;
				border: solid 2rpx #d7000f;
				text-align: center;
				color: #d7000f;
				font-family: SourceHanSansCN-Regular;
				font-size: 32rpx;

				.name {
					font-size: 28rpx;
					margin-top: -6rpx;
				}
			}

			.cypt {
				width: 220rpx;
				height: 78rpx;
				background-color: #f73f33;
				border-radius: 39rpx;
				text-align: center;
				font-family: SourceHanSansCN-Regular;
				font-size: 32rpx;
				color: #ffffff;
				margin-left: 21rpx;
				margin-right: 10rpx;
				.name{
					font-size: 28rpx;
					margin-top: -6rpx;
				}
			}
		}
	}
</style>
